import service from '../utils/axios.js'

class todosApi {
  post(data) {
    console.log(data)
    return service.post('/todos', data)
  }
  delete(id) {}
  getAll() {
    return service.get('/todos')
  }
}

export default new todosApi()

// 用法
// import todosApi from '@/apis/todos.js'
// todosApi.getAll().then((res) => {})
